package com.insigma.business.qrcode.soldier.dto;

import lombok.Data;

@Data
public class Logtail {
	private String userId;
	private String userRole;
	private String areaCode;
	private int actionType;
	private String actionId;
	private String actionTime;
//	private int actionDuration;
//	private int actionStatus;
	private String appCode;
	
	/**
	 * 设置sls日志输出
	 * @param userId	用户标识
	 * @param userRole	用户类型：群众、企业、政府工作人员、政府领导
	 * @param areaCode	地区编码
	 * @param actionType 操作类型：1-登录;2-离开;3-办事开始;4-办事结束
	 * @param actionId	操作标识
	 * @param actionTime	操作时间
	 * @param actionDuration	操作时长
	 * @param actionStatus	操作状态
	 * @param appCode	应用编码
	 */
	public Logtail(String userId, String userRole, String areaCode, int actionType, String actionId, String actionTime) {
        this.userId = userId;
        this.userRole = userRole;
        this.areaCode = areaCode;
        this.actionType = actionType;
        this.actionId = actionId;
        this.actionTime = actionTime;
//        this.actionDuration = actionDuration;
//        this.actionStatus = actionStatus;
        this.appCode="A330101229813202107000001";
    }
}
